package com.lzh.service;

import com.lzh.spring.*;

@Component("userService")
@Scope("prototype")
public class UserService implements BeanNameAware, InitializationBean {
    @Autowire
    private OrderService orderService;

    private String beanName;

    public void test(){
        System.out.println(orderService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public void afterPropertySet() {
        System.out.println("init...");
    }
}
